package com.kkb.web.test;

public class Demo {
    private int a = 1;
    public void testMethod(){
        //有且只有一个对象/示例
        int aa = 10;
        Demo demo1 = new Demo();
        Demo demo2 = new Demo();
        Demo demo3 = new Demo();

       System.out.println(demo1.hashCode());
        Runtime runtime = Runtime.getRuntime();
        Runtime runtime2 = Runtime.getRuntime();
        Runtime runtime3 = Runtime.getRuntime();
        Runtime runtime4 = Runtime.getRuntime();

        System.out.println("testMethod");
    }
}
